{**
 * index.tpl
 *
 * Copyright (c) 2003-2012 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * Journal index page.
 *
 * $Id$
 *}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset={$defaultCharset|escape}" />
    <link rel="stylesheet" href="{$baseUrl}/styles/report.css" type="text/css" />

</head>

<body>
<div>
    <b>{$tencty}</b>
    <br>
    <i>{$diachi}</i>
</div>
<p>{$tieude}</p>
<div class="detail">
    <b>Tài khoản: {$loaitk}</b>
    <br>
    Từ ngày: <b>{$tbdau|date_format:"%D"}</b> đến ngày: <b>{$tkthuc|date_format:"%D"}</b>
</div>
<div>
    <input type="button" id="print_button"  value="In báo cáo" onclick="this.style.display ='none'; window.print()" />
</div>
<table class="report" width="100%">

    <tr>
        <th class="soquy" rowspan="2"> NGÀY </th>
        <th class="soquy" colspan="2"> SỐ PHIẾU </th>
        <th class="soquy" rowspan="2"> NỘI DUNG </th>
        <th class="soquy" rowspan="2"> TKĐƯ </th>
        <th class="soquy" colspan="3"> SỐ TIỀN </th>
    </tr>
    <tr>
        <th class="soquy"> THU </th>
        <th class="soquy"> CHI </th>
        <th class="soquy"> Nợ </th>
        <th class="soquy"> Có </th>
        <th class="soquy"> Số dư </th>
    </tr>


    {foreach from=$ctkts item=ctkt}
        <tr>
            <td class="soquy">
                {$ctkt.ngct|date_format:"%D"}
            </td>
            <td class="soquy">
                {if $ctkt.noco eq 'N'}
                    {$ctkt.soct}
                {/if}
            </td>
            <td class="soquy">
                {if $ctkt.noco eq 'C'}
                    {$ctkt.soct}
                {/if}
            </td>
            <td class="soquy" id="noidung">
                {$ctkt.diengiai}
            </td>
            <td class="soquy">
                {$ctkt.tkdu}
            </td>
            <td class="soquy" id="sotien">
                {if $ctkt.noco eq 'N'}
                    {$ctkt.psno|number_format:0:".":"."}
                {/if}
            </td>
            <td class="soquy" id="sotien">
                {if $ctkt.noco eq 'C'}
                    {$ctkt.psno|number_format:0:".":"."}
                {/if}
            </td>
	    <td class="soquy" id="sotien">
                    {$ctkt.psno|number_format:0:".":"."}
            </td>
        </tr>
    {/foreach}

</table>
</body>
</html>

	
